package com.mdd.front.validate.yangyangLeadingEnterprise;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * app政策新闻参数
 * @author LikeAdmin
 */
@Data
@ApiModel("app政策新闻更新参数")
public class TAppPolicyNewsUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Integer id;

    @NotNull(message = "title参数缺失")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotNull(message = "subtitle参数缺失")
    @ApiModelProperty(value = "副标题")
    private String subtitle;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "内容")
    private String content;

    @NotNull(message = "pic参数缺失")
    @ApiModelProperty(value = "")
    private String pic;

    @NotNull(message = "video参数缺失")
    @ApiModelProperty(value = "")
    private String video;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "类型")
    private Integer type;

    @NotNull(message = "chargeFlag参数缺失")
    @ApiModelProperty(value = "是否收费（1：收费；2：免费；）")
    private Integer chargeFlag;

}
